package com.logos;

import com.logos.config.SpringConfig;
import com.logos.dao.BookDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AppForAopAdvice {

    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookDao bookDao = (BookDao) ctx.getBean("bookDaoImpl");
        String name = bookDao.findName(100,"logos");
        System.out.println("name = " + name);
    }
}
